<%@ page language="java" import="java.util.*,com.entity.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'list.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
   
    <script language="javascript" type="text/javascript" src="js/qy1.js"></script>
  <body >
  <%Dlyh dlyh = (Dlyh)request.getSession().getAttribute("dlyh"); 
  if((dlyh.getZd().getTypename().endsWith("乡")||dlyh.getZd().getTypename().equals("工业园区")||dlyh.getZd().getTypename().endsWith("镇")||dlyh.getZd().getTypename().endsWith("办")||dlyh.getZd().getTypename().endsWith("办事处")||dlyh.getZd().getTypename().endsWith("局")||dlyh.getZd().getTypename().endsWith("社")||dlyh.getZd().getTypename().endsWith("集团")||dlyh.getZd().getTypename().endsWith("院")||dlyh.getZd().getTypename().equals("民航"))){
   %>
  <input type="hidden" value="<%=request.getSession().getAttribute("shiqyid") %>" id="shiqyid2" name="shiqyid2" />
  <%}%>
  <input type="hidden" value="<%=dlyh.getZd().getParentid() %>" id="qyid2" name="qyid2" />
  <input type="hidden" value="<%=dlyh.getZd().getTypename() %>:<%=dlyh.getZd().getId() %>:<%=dlyh.getZd().getParentid() %>" id="dlyhzd2" name="dlyhzd2" />
  <input type="hidden" value="<%=request.getAttribute("shi2") %>" id="shiid2" name="shiid2" />
  <input type="hidden" value="<%=request.getAttribute("xian2") %>" id="xianid2" name="xianid2" />
  <input type="hidden" value="<%=request.getAttribute("xiang2") %>" id="xiangid2" name="xiangid2" />
  <input type="hidden" value="<%=request.getAttribute("cun2")%>" id="cunid2" name="cunid2" />
  <input type="hidden" value="<%=request.getAttribute("xianzhi2") %>" id="xianzhi2" name="xianzhi2" />
  
    <select disabled="disabled" id="sheng2" name="sheng2" >
           <option value="河北省">河北省</option>
        </select>省
        <select id="shi2" name="shi2" onchange="shi2change(this.value)">
           <option>请选择市</option>
           <%List xianlist=(List) request.getSession().getAttribute("shilist"); 
            for(int i=0;i<xianlist.size();i++){%>
           <option value="<%=((Zd)xianlist.get(i)).getId() %>"><%=((Zd)xianlist.get(i)).getTypename() %></option>
           <%} %>
        </select>市
        <select id="xian2" name="xian2" onchange="xian2change(this.value)">
           <option>请选择县</option>
        </select>县
        <select id="xiang2"  name="xiang2" onchange="xiang2change(this.value)" >
         <option>请选择乡</option>
        </select>乡
        <select id="cun2"  name="cun2" >
        <option >请选择村</option>
        </select>村
  </body>
  <script type="text/javascript">
  loaddw2();selectedaddr2();
  </script>
</html>
